#include <assert.h>
#include <imbus.h>
#include <stdio.h>

int main (int argc, char *argv [])
{
    IMString *str;
    IMString *ret;
    IMUInt32  key;
    int i;

    im_init (&argc, &argv);
    str = im_string_new (0);

    for (i = 1; i < argc; ++i) {
        im_string_assign_static (str, argv [i]);
        key = im_key_from_name (str);
        ret = im_key_get_name (key);
        printf ("Key Code = 0x%04x X11 Keysym = 0x%04x  Name = %s\n",
                im_key_get_code (key),
                im_key_code_to_x11keysym (key),
                im_string_c_str (ret));
        im_object_unref (ret);
    }

    im_object_unref (str);

    return 0;
}
/*
vi:ts=4:nowrap:ai:expandtab
*/
